package com.samshow.res.repository;

import com.samshow.res.entity.ScreenEntity;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by niwb on 2017/2/21.
 */
@CacheConfig(cacheNames = "screen")
public interface ScreenRepository extends CrudRepository<ScreenEntity, String> {

    @Cacheable(key = "#netId")
    public ScreenEntity findById(String netId);

}
